<template>
  <div class="hello">
    <h1>hello world 子组件</h1>
    <h2>{{ bb }}</h2>
  </div>
</template>

<script>
export default {
  name: "HelloWorld",
  props: {
    bb: String,
  },
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<!-- scoped 让样式只在 本组件中有用 不污染别的组件 -->
<style scoped lang="scss">
h3 {
  margin: 40px 0 0;
}
ul {
  list-style-type: none;
  padding: 0;
}
li {
  display: inline-block;
  margin: 0 10px;
}
a {
  color: #42b983;
}
</style>
